package com.han.nettytestdemo.connector.impl;

import android.util.Log;

import com.han.nettytestdemo.connector.ImsConnector;
import com.han.nettytestdemo.connector.communication.Order;
import com.han.nettytestdemo.connector.communication.OrderManage;
import com.han.nettytestdemo.connector.communication.ProductCallback;
import com.han.nettytestdemo.connector.communication.SeialHelp;


/**
 * 密集架操作实现类
 */
public class ImsImpl implements ImsConnector {

    @Override
    public void leftContinuousVentilation(String[] ventilationData, ProductCallback productCallback) throws InterruptedException {
        ventilationData = SeialHelp.checkNum(ventilationData);
        String[][] cmds = new String[][]{ventilationData.clone()};
        OrderManage.getInstance().putStorage(cmds, productCallback, Order.ExecutiveLevel.HIGH);
    }
}
